package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.WmChannelPageReqDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmChannel;

public interface ChannelService extends IService<WmChannel> {

    /**
     * 保存新增频道
     * @param wmChannel
     * @return
     */
   public ResponseResult saveChannel(WmChannel wmChannel);

    /**
     * 根据id删除频道
     * @param id
     * @return
     */
   public ResponseResult deleteChannel(Integer id);


    /**
     * 频道名称模糊分页查询
     * @param dto
     * @return
     */
    public ResponseResult pageChannel(WmChannelPageReqDto dto);

    /**
     * 修改频道
     * @param wmChannel
     * @return
     */
    public ResponseResult updateChannel(WmChannel wmChannel);
}
